package com.woniu.service;

import com.baomidou.mybatisplus.extension.service.IService;


import com.woniu.entity.PageResult;
import com.woniu.pojo.Maintainer;


import com.woniu.entity.PageResult;
import com.woniu.pojo.Maintainer;
import com.woniu.vo.MaintainerAddVo;
import com.woniu.vo.StreetVo;
import org.yaml.snakeyaml.tokens.StreamEndToken;


import java.util.List;

/**
 * 运维人员管理业务逻辑层
 * */
public interface IMaintainerServices extends IService<Maintainer> {
    /**
     * 条件分页查询
     * */
    PageResult searchByPage(Integer currentPage, Integer pageSize, Maintainer maintainer);
    /**
     * 查询所有的街道
     * */
    List<StreetVo> searchAllStreet();

    Boolean add(MaintainerAddVo maintainerAddVo);

    MaintainerAddVo searchById(Long id);

    Boolean modify(MaintainerAddVo maintainerAddVo);

    Boolean removesById(Long id);

    Boolean stopMaintainer(Long id);

    Boolean useMaintainer(Long id);
}
